package com.kosam.demoservice.service;

import com.kosam.commons.base.service.ServiceSupport;
import com.kosam.demoservice.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Created by tgx on 2017/2/15.
 */
public interface UserService extends ServiceSupport<User, Long> {

    User findByName(String name);

    Page<User> query(Pageable pageable, String name);
}
